FROM openjdk:8-alpine3.9
MAINTAINER liuc Docker work: springboot project for docker
# 修改源
RUN echo "http://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories && \
 echo "http://mirrors.aliyun.com/alpine/latest-stable/community/" >> /etc/apk/repositories
# 安装软件
RUN apk --update add curl bash tzdata && \
  rm -rf /var/cache/apk/*

ENV TZ Asia/Shanghai
ARG JAR_FILE
ARG CONF_YAML
COPY ${JAR_FILE} app.jar
COPY ${CONF_YAML} application.yaml
EXPOSE 9090
ENTRYPOINT ["java","-jar","/app.jar"]